#ifndef SPRITE
#define SPRITE

#include "billboard.h"
#include "../core/math/timer.h"

namespace sleek
{
    namespace node
    {
        namespace billboard
        {
            class Sprite : public Billboard
            {
                public:
                    Sprite(core::engine::engine*);

                    virtual void setTimer(core::u32); // ms
                    virtual void setArray(core::math::array<texture::texture*>);
                    virtual void restart();

                    virtual core::math::array<texture::texture*> getArray();
                    virtual core::u32 getTimer();

                    virtual void render();
                private:
                    core::u32 timespec, current;
                    core::math::timer time_stamp;
                    core::math::array<texture::texture*> anim;
            };
        }
    }
}

#endif
